<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">


<form name="form1" id="form1" method="post" action="./holiday.php">
<input type="hidden" name="mode" value="edit">
<input type="hidden" name="holiday_id" value="<!--{$tpl_holiday_id}-->">
<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<div class="menuclass">
<dl>
<dt>タイトル<span class="red"> *</span></dt>
<dd>
	<span class="red12"><!--{$arrErr.title}--></span>
	<input type="text" name="title" value="<!--{$arrForm.title|escape}-->" maxlength="<!--{$smarty.const.SMTEXT_LEN}-->" style="" size="60" class="box60"/>
	<span class="red"> （上限<!--{$smarty.const.SMTEXT_LEN}-->文字）</span>
</dd>
<dt>日付<span class="red"> *</span></dt>
<dd>
	<span class="red12"><!--{$arrErr.date}--></span>
	<span class="red12"><!--{$arrErr.month}--></span>
	<span class="red12"><!--{$arrErr.day}--></span>
		<select name="month" style="<!--{$arrErr.month|sfGetErrorColor}-->">
		<option value="">--</option>
		<!--{html_options options=$arrMonth selected=$arrForm.month}-->
		</select>月
			<select name="day" style="<!--{$arrErr.day|sfGetErrorColor}-->">
			<option value="">--</option>
			<!--{html_options options=$arrDay selected=$arrForm.day}-->
			</select>日
			<br />
			<span class="red">振替え休日は自動設定されないので、振替え先の日付を設定してください。</span>
</dd>
</dl>
</div>


<div class="btn_box">
<input type="submit" value="この内容で登録する" name="subm" />
</div>



<div class="menuclass">
<table summary="定休日登録">
<tr>
<th>タイトル</th><th>日付</th><th>編集</th><th>削除</th><th>移動</th>
</tr>
	<!--{section name=cnt loop=$arrHoliday}-->
	<tr bgcolor="<!--{if $tpl_class_id != $arrHoliday[cnt].holiday_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->">
	<!--{assign var=holiday_id value=$arrHoliday[cnt].holiday_id}-->
	<td><!--{$arrHoliday[cnt].title|escape}--></td>
	<td><!--{$arrHoliday[cnt].month|escape}-->月<!--{$arrHoliday[cnt].day|escape}-->日</td>
	<td align="center">
	<!--{if $tpl_holiday_id != $arrHoliday[cnt].holiday_id}-->
	<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('pre_edit', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">編集</a>
	<!--{else}-->編集中
	<!--{/if}-->
	</td>
		<td align="center">
		<!--{if $arrClassCatCount[$class_id] > 0}-->
		-
		<!--{else}-->
		<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('delete', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;">削除</a>
		<!--{/if}-->
		</td>
			<td align="center">
			<!--{if $smarty.section.cnt.iteration != 1}-->
			<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('up', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;" />上へ</a>
			<!--{/if}-->
				<!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}-->
				<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnModeSubmit('down', 'holiday_id', <!--{$arrHoliday[cnt].holiday_id}-->); return false;" />下へ</a>
				<!--{/if}-->
			</td>
	</tr>
	<!--{/section}-->
</table>
</div>

</form>
</div>
</div>
